package com.relytosoft.mizar.media.display.api.entity;

/**
 * 预置位实体类
 *
 * @author hj
 * @version 1.0
 * @date 2022/4/6 13:35
 * @ClassName Preset
 */
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.relytosoft.dubhe.common.core.base.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import javax.validation.constraints.NotBlank;
import java.time.LocalDateTime;


@TableName("VID_PTZ_PRESET")
@ApiModel("Preset")
public class Preset extends BaseEntity {

    private static final long serialVersionUID = 1674808660082468312L;

    /**
     * 主键ID
     */
    @TableId(value="ID", type= IdType.AUTO)
    @ApiModelProperty(value = "主键ID")
    @NotBlank(message = "主键ID不能为空")
    private Integer id;



    /**
     * 通道
     */
    @ApiModelProperty(value = "通道")
    @TableField("CHANNEL_ID")
    @NotBlank(message = "云台不能为空")
    private Integer channelId;

    /**
     * 预置位名称
     */
    @ApiModelProperty(value = "预置位名称")
    @TableField("PRESET_NAME")
    @NotBlank(message = "预置位名称不能为空")
    private String presetName;

    /**
     * 预置位索引
     */
    @ApiModelProperty(value = "预置位索引")
    @TableField("PRESET_INDEX")
    @NotBlank(message = "预置位索引不能为空")
    private Integer presetIndex;

    /**
     * 是否守望点/看守位
     */
    @ApiModelProperty(value = "是否守望点/看守位")
    @TableField("IS_GUARD")
    @NotBlank(message = "是否守望点/看守位不能为空")
    private Integer isGuard;



    /**
     * 获得主键ID
     */
    public Integer getId(){
        return this.id;
    }
    /**
     * 设置主键ID
     */
    public void setId(Integer id){
        this.id = id;
    }



    /**
     * 获得预置位名称
     */
    public String getPresetName(){
        return this.presetName;
    }
    /**
     * 设置预置位名称
     */
    public void setPresetName(String presetName){
        this.presetName = presetName;
    }

    /**
     * 获得预置位索引
     */
    public Integer getPresetIndex(){
        return this.presetIndex;
    }
    /**
     * 设置预置位索引
     */
    public void setPresetIndex(Integer presetIndex){
        this.presetIndex = presetIndex;
    }

    /**
     * 获得是否守望点/看守位
     */
    public Integer getIsGuard(){
        return this.isGuard;
    }
    /**
     * 设置是否守望点/看守位
     */
    public void setIsGuard(Integer isGuard){
        this.isGuard = isGuard;
    }

    public Integer getChannelId() {
        return channelId;
    }

    public void setChannelId(Integer channelId) {
        this.channelId = channelId;
    }

    @Override
    public String toString() {
        return "Preset{" +
                "id=" + id +
                ", channelId=" + channelId +
                ", presetName='" + presetName + '\'' +
                ", presetIndex=" + presetIndex +
                ", isGuard=" + isGuard +
                ", createdId=" + createdId +
                ", createdBy='" + createdBy + '\'' +
                ", createdTime=" + createdTime +
                ", updatedId=" + updatedId +
                ", updatedBy='" + updatedBy + '\'' +
                ", updatedTime=" + updatedTime +
                '}';
    }
}